package com.airena.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 角色信息表
 * </p>
 *
 * @author mender
 * @since 2025-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("role_info")
@Schema(description = "角色信息表")
public class RoleInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键值")
    @TableId(value = "role_id", type = IdType.AUTO)
    private Integer roleId;

    @Schema(description = "角色名称")
    @TableField("role_name")
    private String roleName;

    @Schema(description = "角色类别（0:主角, 1:配角, 2:反派）")
    @TableField("category_code")
    private Integer categoryCode;

    @Schema(description = "角色来源（如 魔法世界、游戏、小说等）")
    @TableField("source")
    private String source;

    @Schema(description = "性格特点")
    @TableField("personality")
    private String personality;

    @Schema(description = "语言风格")
    @TableField("language_style")
    private String languageStyle;

    @Schema(description = "背景知识")
    @TableField("background_knowledge")
    private String backgroundKnowledge;

    @Schema(description = "tts语音配置")
    @TableField("tts_config")
    private String ttsConfig;

    @Schema(description = "角色图片")
    @TableField("image")
    private String image;

    @Schema(description = "角色状态(0:禁用, 1:启用, 2:审核中")
    @TableField("status")
    private Integer status;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

}
